package com.googlecode.afdbaccess.web.common.login;

import junit.framework.Assert;

import org.junit.Test;

public class ApplicationPrincipalTest {
    @Test
    public void testSetAndGet() {
        // Given
        String userName = "userName";
        long userId = 102;
        String displayName = "displayName";
        
        // When
        ApplicationPrincipal applicationPrincipal = new ApplicationPrincipal(userName, userId, displayName);
        
        // Then
        Assert.assertEquals(userName, applicationPrincipal.getName());
        Assert.assertEquals(userId, applicationPrincipal.getUserId());
        Assert.assertEquals(displayName, applicationPrincipal.getDisplayName());
    }
}
